import request from '@/utils/request'

// 点位管理相关接口

// 区域列表
export const getPointApi = (params) => {
  return request({
    url: '/vm-service/region/search',
    params
  })
}
// 点位搜索
export const searchPointApi = (params) => {
  return request({
    url: '/vm-service/node/search',
    params
  })
}
// 获取区域详情
export const getRegionIdApi = (id) => {
  return request({
    url: `/vm-service/region/${id}`
  })
}
// 新增区域
export const createPointApi = (data) => {
  return request({
    url: `/vm-service/region`,
    method: 'POST',
    data
  })
}
// 修改区域
export const revisePointApi = (data) => {
  return request({
    url: `/vm-service/region/${data.id}`,
    method: 'PUT',
    data
  })
}
// 商圈列表
export const getShoppingApi = (params) => {
  return request({
    url: '/vm-service/businessType',
    params
  })
}
// 合作商搜索
export const getPartnersApi = (params) => {
  return request({
    url: '/user-service/partner/search',
    params
  })
}
